// TvDlg.cpp : implementation file
//

#include "stdafx.h"
#include "resourcemakeDlg.h"
#include "CfgTvDlg.h"
#include "CfgDlgBase.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCfgTvDlg dialog


CCfgTvDlg::CCfgTvDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CCfgTvDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCfgTvDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CCfgTvDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCfgTvDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCfgTvDlg, CDialog)
	//{{AFX_MSG_MAP(CCfgTvDlg)
	ON_BN_CLICKED(IDC_RADIOTv1, OnRADIOTv1)
	ON_BN_CLICKED(IDC_RADIOTv2, OnRADIOTv2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCfgTvDlg message handlers

BOOL CCfgTvDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	((CButton*)GetDlgItem(IDC_RADIOTv1))->SetCheck(TRUE);  
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CCfgTvDlg::OnRADIOTv1() 
{
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =1024;
	pDlgBase->height = 768;
	
}

void CCfgTvDlg::OnRADIOTv2() 
{
	// TODO: Add your control notification handler code here
		CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =1366;
	pDlgBase->height = 768;
}
